<!--
    ***** BEGIN LICENSE BLOCK *****
    
    Copyright © Corporation for Digital Scholarship
                Vienna, Virginia, USA
                https://www.zotero.org
    
    This file is part of Zotero.
    
    Zotero is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    Zotero is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with Zotero.  If not, see <http://www.gnu.org/licenses/>.
    
    ***** END LICENSE BLOCK *****
-->
<vbox
	class="main-section" id="zotero-prefpane-file-renaming-format"
	onload="Zotero_Preferences.FileRenaming.init()"
	onunload="Zotero_Preferences.FileRenaming.uninit()"
>
	<hbox class="header">
		<html:h1 data-l10n-id="preferences-file-renaming-format-title" />
	</hbox>
	
	<label data-l10n-id="preferences-file-renaming-format-instructions" />
	<separator class="thin" />
	<label data-l10n-id="preferences-file-renaming-format-instructions-example"
		data-l10n-args='{"example": "{{ title truncate=\"50\" }}"}' />
	<separator class="thin" />
	<label data-l10n-id="preferences-file-renaming-format-instructions-more">
		<label
			is="zotero-text-link"
			href="https://www.zotero.org/support/file_renaming"
			data-l10n-name="file-renaming-format-help-link"
		/>
	</label>
	
	<separator class="thin" />
	
	<groupbox>
		<html:label
			for="file-renaming-format-template"
			id="file-renaming-format-template-label"
		>
			<html:h2 data-l10n-id="preferences-file-renaming-format-template" />
		</html:label>
		<html:textarea
			aria-labelledby="file-renaming-format-template-label"
			id="file-renaming-format-template"
			preference="extensions.zotero.attachmentRenameTemplate"
			rows="3"
		/>
		<html:label id="file-renaming-format-preview-label">
			<html:h2
				data-l10n-id="preferences-file-renaming-format-preview"
			/>
		</html:label>
		<html:label
			aria-labelledby="file-renaming-format-preview-label"
			id="file-renaming-format-preview"
		/>
	</groupbox>
</vbox>
